package fun.easycode.jointblock.manager;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(
        name = "CommentServiceClient",
        url = "http://api.cd0755d8e9df9425a8d1653d7ac3a863d.cn-beijing.alicontainer.com/comment-api/v2/comments"
)
public interface CommentCountClient {

    /**
     * @Description： 批量获取评论回复数
     * @Author: leixuan.Z
     * @Date: 2019/5/20
     */
    @GetMapping("/batch/count")
    ResponseEntity<Map<String, Object>> commentCount(@RequestParam("topicIds") List<String> topicIds,
                                                     @RequestParam("topicType") String topicType);
}
